package com.example.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.example.entity.MessageEntity;
import com.example.mapper.MessageMapper;
import com.example.service.MessageService;
@Service
public class MessageServiceImpl implements MessageService{

	@Autowired
	private MessageMapper messageMapper;
	
	@Override
	public List<MessageEntity> find(MessageEntity me) {
		// TODO Auto-generated method stub
		return messageMapper.find(me);
	}

	@Override
	public int addMessage(MessageEntity me) {
		// TODO Auto-generated method stub
		return messageMapper.addMessage(me);
	}

	@Override
	public int getCount(MessageEntity me) {
		// TODO Auto-generated method stub
		return messageMapper.getCount(me);
	}

	@Override
	public int upMessage(Integer id) {
		// TODO Auto-generated method stub
		return messageMapper.upMessage(id);
	}

	@Override
	public int getMessagePrompt(MessageEntity me) {
		// TODO Auto-generated method stub
		return messageMapper.getMessagePrompt(me);
	}

}
